<?php
class Zend_View_Helper_ShowUserOrEmail {
	protected $_view;
	function setView($view) { 
		$this->_view = $view; 
	} 
	
	function showUserOrEmail($user) {
		if (empty($user->username))
		return $user->email;
		else
		return $user->username;
	}
}
?>